package com.carrot.common.mybatis.constant;

/** MyBatis 常量 */
public final class MyBatisConstants {

  /** 逻辑删除值 */
  public static final String LOGIC_DELETE_VALUE = "1";
  /** 逻辑不删除值 */
  public static final String LOGIC_NOT_DELETE_VALUE = "0";

  /** ID */
  public static final String FIELD_ID = "id";
  /** PID */
  public static final String FIELD_PARENT_ID = "parent_id";
  /** PIDs */
  public static final String FIELD_PARENT_IDS = "parent_ids";
  /** 创建人 */
  public static final String FIELD_CREATE_BY = "create_by";
  /** 更新时间 */
  public static final String FIELD_CREATE_TIME = "create_time";
  /** 更新人 */
  public static final String FIELD_UPDATE_BY = "update_by";
  /** 更新时间 */
  public static final String FIELD_UPDATE_TIME = "update_time";
  /** 逻辑删除 */
  public static final String FIELD_DELETE_LOGIC = "deleted";
  /** 乐观锁 */
  public static final String FIELD_OPTIMISTIC_LOCK = "version";

  private MyBatisConstants() {}
}
